package com.fwj.interfaceexample;

/**
 * @author stone.feng
 * @since 2019-02-27
 */
public class InitCountTest {


    public static int aMethed(int i) throws Exception {
        try {
            return i / 10;
        } catch (Exception e) {
            e.printStackTrace();
            throw new Exception("exception in a method");
        } finally {
            System.out.println("finally");
        }
    }

    public static void main(String[] args) {
        try {
            aMethed(0);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("exception in main");
        }
        System.out.println("finished");

    }

}
